package net.ypsilon;

import java.util.*;

public class ProjectPool {
	
	private Hashtable pool = new Hashtable(); 
	
	ProjectPool(String fileName){
	  loadFromFile(fileName);	
	}
	
	public ProjectDetails find(int projectID){
		return (ProjectDetails)pool.get(new Integer(projectID));
	}
	
	private void loadFromFile(String fileName){
		
		// TO DO: update using new version if the project ID wasn't here.
		
		pool.put( new Integer(1164), new ProjectDetails(1164, 574) );
		pool.put( new Integer(1165), new ProjectDetails(1165, 622) );
		pool.put( new Integer(1168), new ProjectDetails(1168, 574) );
		pool.put( new Integer(1169), new ProjectDetails(1169, 574) );
		pool.put( new Integer(1170), new ProjectDetails(1170, 574) );
		pool.put( new Integer(1171), new ProjectDetails(1171, 574) );
		pool.put( new Integer(1487), new ProjectDetails(1487, 1741) );
		pool.put( new Integer(1497), new ProjectDetails(1497, 292) );
		pool.put( new Integer(1498), new ProjectDetails(1498, 755) );
		pool.put( new Integer(1816), new ProjectDetails(1816, 330) );
		pool.put( new Integer(2146), new ProjectDetails(2146, 230) );
		pool.put( new Integer(2147), new ProjectDetails(2147, 218) );
		pool.put( new Integer(2148), new ProjectDetails(2148, 225) );
		pool.put( new Integer(2149), new ProjectDetails(2149, 220) );
		pool.put( new Integer(2150), new ProjectDetails(2150, 230) );
		pool.put( new Integer(2151), new ProjectDetails(2151, 218) );
		pool.put( new Integer(2152), new ProjectDetails(2152, 225) );
		pool.put( new Integer(2153), new ProjectDetails(2153,	220) );
		pool.put( new Integer(2416), new ProjectDetails(2416,	500) );
		pool.put( new Integer(2417), new ProjectDetails(2417,	500) );
		pool.put( new Integer(2418), new ProjectDetails(2418,	500) );
		pool.put( new Integer(2425), new ProjectDetails(2425,	500) );
		pool.put( new Integer(2426), new ProjectDetails(2426,	500) );
		pool.put( new Integer(2427), new ProjectDetails(2427, 500) );
		pool.put( new Integer(2556), new ProjectDetails(2556, 330) );
		pool.put( new Integer(2557), new ProjectDetails(2557, 330) );
		pool.put( new Integer(2558), new ProjectDetails(2558, 412) );
		pool.put( new Integer(2559), new ProjectDetails(2559, 275) );
		pool.put( new Integer(2560), new ProjectDetails(2560, 308) );
		pool.put( new Integer(2561), new ProjectDetails(2561, 270) );
		pool.put( new Integer(2562), new ProjectDetails(2562, 401) );
		pool.put( new Integer(2563), new ProjectDetails(2563, 250) );
		pool.put( new Integer(2564), new ProjectDetails(2564, 290) );
		pool.put( new Integer(2565), new ProjectDetails(2565, 210) );
		pool.put( new Integer(2567), new ProjectDetails(2567,  60) );
		pool.put( new Integer(2568), new ProjectDetails(2568,  60) );
		pool.put( new Integer(2569), new ProjectDetails(2569, 300) );
		pool.put( new Integer(2570), new ProjectDetails(2570, 340) );
		pool.put( new Integer(2571), new ProjectDetails(2571, 310) );
		pool.put( new Integer(2572), new ProjectDetails(2572, 320) );
		pool.put( new Integer(2573), new ProjectDetails(2573, 310) );
		pool.put( new Integer(2574), new ProjectDetails(2574, 240) );
		pool.put( new Integer(2575), new ProjectDetails(2575, 240) );
		pool.put( new Integer(2576), new ProjectDetails(2576, 240) );
		pool.put( new Integer(2577), new ProjectDetails(2577, 210) );
		pool.put( new Integer(2578), new ProjectDetails(2578, 300) );
		pool.put( new Integer(2579), new ProjectDetails(2579, 260));
		pool.put( new Integer(2580), new ProjectDetails(2580, 280));
		pool.put( new Integer(2581), new ProjectDetails(2581, 260));
		pool.put( new Integer(2604), new ProjectDetails(2604, 1760));
		pool.put( new Integer(2605), new ProjectDetails(2605, 1760));
		pool.put( new Integer(2606), new ProjectDetails(2606, 292));
		pool.put( new Integer(2608), new ProjectDetails(2608, 1385));
		pool.put( new Integer(2609), new ProjectDetails(2609, 1523));
		pool.put( new Integer(2610), new ProjectDetails(2610, 1523));
		pool.put( new Integer(2611), new ProjectDetails(2611, 682));
		pool.put( new Integer(2612), new ProjectDetails(2612,92));
		pool.put( new Integer(2613), new ProjectDetails(2613, 55));
		pool.put( new Integer(2614), new ProjectDetails(2614, 87));
		pool.put( new Integer(2615), new ProjectDetails(2615, 664));
		pool.put( new Integer(2620), new ProjectDetails(2620, 292));
		pool.put( new Integer(2621), new ProjectDetails(2621, 292));
		pool.put( new Integer(2651), new ProjectDetails(2651, 1760));
		pool.put( new Integer(2652), new ProjectDetails(2652, 1148));
		pool.put( new Integer(2653), new ProjectDetails(2653, 1760));
		pool.put( new Integer(2711), new ProjectDetails(2711, 330));
		pool.put( new Integer(2721), new ProjectDetails(2721, 330));
		pool.put( new Integer(2723), new ProjectDetails(2723, 330));
		pool.put( new Integer(2725), new ProjectDetails(2725, 330));
		pool.put( new Integer(2732), new ProjectDetails(2732, 330));
		pool.put( new Integer(2733), new ProjectDetails(2733, 330));
		pool.put( new Integer(2734), new ProjectDetails(2734, 330));
		pool.put( new Integer(2735), new ProjectDetails(2735, 330));
		pool.put( new Integer(2736), new ProjectDetails(2736, 330));
		pool.put( new Integer(2737), new ProjectDetails(2737, 330));
		pool.put( new Integer(2738), new ProjectDetails(2738, 330));
		pool.put( new Integer(2739), new ProjectDetails(2739, 330));
		pool.put( new Integer(2740), new ProjectDetails(2740, 330));
		pool.put( new Integer(2741), new ProjectDetails(2741, 330));
		pool.put( new Integer(2742), new ProjectDetails(2742, 330));
		pool.put( new Integer(2743), new ProjectDetails(2743, 330));
		pool.put( new Integer(2744), new ProjectDetails(2744, 330));
		pool.put( new Integer(2745), new ProjectDetails(2745, 330));
		pool.put( new Integer(2746), new ProjectDetails(2746, 330));
		pool.put( new Integer(2747), new ProjectDetails(2747, 330));
		pool.put( new Integer(2748), new ProjectDetails(2748, 330));
		pool.put( new Integer(2928), new ProjectDetails(2928, 330));
		pool.put( new Integer(2929), new ProjectDetails(2929, 330));
		pool.put( new Integer(2951), new ProjectDetails(2951, 44));
		pool.put( new Integer(2952), new ProjectDetails(2952, 44));
		pool.put( new Integer(2962), new ProjectDetails(2962,	132));
		pool.put( new Integer(2963), new ProjectDetails(2963,	132));
		pool.put( new Integer(2966), new ProjectDetails(2966,	132));
		pool.put( new Integer(2967), new ProjectDetails(2967,	132));
		pool.put( new Integer(3023), new ProjectDetails(3023,	587));
		pool.put( new Integer(3025), new ProjectDetails(3025,	587));
		pool.put( new Integer(3027), new ProjectDetails(3027,	716));
		pool.put( new Integer(3039), new ProjectDetails(3039,	186));
		pool.put( new Integer(3040), new ProjectDetails(3040,	186));
		pool.put( new Integer(3041), new ProjectDetails(3041,	186));
		pool.put( new Integer(3042), new ProjectDetails(3042,	186));
		pool.put( new Integer(3043), new ProjectDetails(3043,	1440));
		pool.put( new Integer(3044), new ProjectDetails(3044,	 218));
		pool.put( new Integer(3045), new ProjectDetails(3045,	 314));
		pool.put( new Integer(3046), new ProjectDetails(3046,	 236));
		pool.put( new Integer(3047), new ProjectDetails(3047,	 218));
		pool.put( new Integer(3048), new ProjectDetails(3048,	 314));
		pool.put( new Integer(3049), new ProjectDetails(3049,	 236));
		pool.put( new Integer(3050), new ProjectDetails(3050,	1440));
		pool.put( new Integer(3051), new ProjectDetails(3051,	1440));
		pool.put( new Integer(3052), new ProjectDetails(3052,	1440));
		pool.put( new Integer(3059), new ProjectDetails(3059,	1167));
		pool.put( new Integer(3060), new ProjectDetails(3060,	2539));
		pool.put( new Integer(3061), new ProjectDetails(3061,	1329));
		pool.put( new Integer(3062), new ProjectDetails(3062,	1324));
		pool.put( new Integer(3063), new ProjectDetails(3063,	1837));
		pool.put( new Integer(3191), new ProjectDetails(3191,	211));
		pool.put( new Integer(3192), new ProjectDetails(3192,	289));
		pool.put( new Integer(3193), new ProjectDetails(3193,	270));
		pool.put( new Integer(3195), new ProjectDetails(3195,	250));
		pool.put( new Integer(3196), new ProjectDetails(3196,	289));
		pool.put( new Integer(3199), new ProjectDetails(3199,	287));
		pool.put( new Integer(3303), new ProjectDetails(3303,	 57));
		pool.put( new Integer(3304), new ProjectDetails(3304,	 34));
		pool.put( new Integer(3305), new ProjectDetails(3305,	 91));
		pool.put( new Integer(3402), new ProjectDetails(3402,	206));
		pool.put( new Integer(3403), new ProjectDetails(3403,	206));
		pool.put( new Integer(3404), new ProjectDetails(3404,	206));
		pool.put( new Integer(3405), new ProjectDetails(3405,	206));
		pool.put( new Integer(3406), new ProjectDetails(3406,	206));
		pool.put( new Integer(3410), new ProjectDetails(3410,	383));
		pool.put( new Integer(3412), new ProjectDetails(3412,	340));
		pool.put( new Integer(3422), new ProjectDetails(3422,	383));
		pool.put( new Integer(3423), new ProjectDetails(3423,	385));
		pool.put( new Integer(3424), new ProjectDetails(3424,	385));
		pool.put( new Integer(3425), new ProjectDetails(3425,	385));
		pool.put( new Integer(3426), new ProjectDetails(3426,	385));
		pool.put( new Integer(3603), new ProjectDetails(3603,	343));
		pool.put( new Integer(3604), new ProjectDetails(3604,	343));
		pool.put( new Integer(3608), new ProjectDetails(3608,	343));
		pool.put( new Integer(3611), new ProjectDetails(3611,	343));
		pool.put( new Integer(3612), new ProjectDetails(3612,	343));
		pool.put( new Integer(3615), new ProjectDetails(3615,	343));
		pool.put( new Integer(3616), new ProjectDetails(3616,	343));
		pool.put( new Integer(3619), new ProjectDetails(3619,	343));
		pool.put( new Integer(3620), new ProjectDetails(3620,	343));
		pool.put( new Integer(3623), new ProjectDetails(3623,	343));
		pool.put( new Integer(3624), new ProjectDetails(3624,	343));
		pool.put( new Integer(3627), new ProjectDetails(3627,	343));
		pool.put( new Integer(3628), new ProjectDetails(3628,	343));
		pool.put( new Integer(3631), new ProjectDetails(3631,	343));
		pool.put( new Integer(3632), new ProjectDetails(3632,	343));
		pool.put( new Integer(3635), new ProjectDetails(3635,	343));
		pool.put( new Integer(3636), new ProjectDetails(3636,	343));
		pool.put( new Integer(3639), new ProjectDetails(3639,	343));
		pool.put( new Integer(3640), new ProjectDetails(3640,	343));
		pool.put( new Integer(3643), new ProjectDetails(3643,	343));
		pool.put( new Integer(3644), new ProjectDetails(3644,	343));
		pool.put( new Integer(3651), new ProjectDetails(3651,	343));
		pool.put( new Integer(3652), new ProjectDetails(3652,	343));
		pool.put( new Integer(3655), new ProjectDetails(3655,	343));
		pool.put( new Integer(3656), new ProjectDetails(3656,	343));
		pool.put( new Integer(3659), new ProjectDetails(3659,	343));
		pool.put( new Integer(3660), new ProjectDetails(3660,	343));
		pool.put( new Integer(3663), new ProjectDetails(3663,	343));
		pool.put( new Integer(3664), new ProjectDetails(3664,	343));
		pool.put( new Integer(3667), new ProjectDetails(3667,	343));
		pool.put( new Integer(3668), new ProjectDetails(3668,	343));
		pool.put( new Integer(3671), new ProjectDetails(3671,	343));
		pool.put( new Integer(3672), new ProjectDetails(3672,	343));
		pool.put( new Integer(3675), new ProjectDetails(3675,	343));
		pool.put( new Integer(3676), new ProjectDetails(3676,	343));
		pool.put( new Integer(3679), new ProjectDetails(3679,	343));
		pool.put( new Integer(3680), new ProjectDetails(3680,	343));
		pool.put( new Integer(3683), new ProjectDetails(3683,	343));
		pool.put( new Integer(3684), new ProjectDetails(3684, 343));
		pool.put( new Integer(3687), new ProjectDetails(3687, 343));
		pool.put( new Integer(3688), new ProjectDetails(3688, 343));
		pool.put( new Integer(3691), new ProjectDetails(3691, 343));
		pool.put( new Integer(3692), new ProjectDetails(3692, 343));
		pool.put( new Integer(3695), new ProjectDetails(3695, 343));
		pool.put( new Integer(3696), new ProjectDetails(3696, 343));
		pool.put( new Integer(3699), new ProjectDetails(3699, 343));
		pool.put( new Integer(3700), new ProjectDetails(3700, 343));
		pool.put( new Integer(3703), new ProjectDetails(3703, 343));
		pool.put( new Integer(3704), new ProjectDetails(3704, 343));
		pool.put( new Integer(3707), new ProjectDetails(3707, 343));
		pool.put( new Integer(3708), new ProjectDetails(3708, 343));
		pool.put( new Integer(3711), new ProjectDetails(3711, 343));
		pool.put( new Integer(3712), new ProjectDetails(3712, 343));
		pool.put( new Integer(3713), new ProjectDetails(3713, 474));
		pool.put( new Integer(3717), new ProjectDetails(3717, 493));
		pool.put( new Integer(3721), new ProjectDetails(3721, 491));
		pool.put( new Integer(3725), new ProjectDetails(3725, 487));
		pool.put( new Integer(3729), new ProjectDetails(3729, 343));
		pool.put( new Integer(3730), new ProjectDetails(3730, 343));
		pool.put( new Integer(3731), new ProjectDetails(3731, 343));
		pool.put( new Integer(3732), new ProjectDetails(3732, 343));
		pool.put( new Integer(3733), new ProjectDetails(3733, 343));
		pool.put( new Integer(3734), new ProjectDetails(3734, 343));
		pool.put( new Integer(3735), new ProjectDetails(3735, 343));
		pool.put( new Integer(3736), new ProjectDetails(3736, 343));
		pool.put( new Integer(3737), new ProjectDetails(3737, 343));
		pool.put( new Integer(3738), new ProjectDetails(3738, 343));
		pool.put( new Integer(3739), new ProjectDetails(3739, 343));
		pool.put( new Integer(3740), new ProjectDetails(3740, 343));
		pool.put( new Integer(3852), new ProjectDetails(3852, 343));
		pool.put( new Integer(3853), new ProjectDetails(3853, 443));
		pool.put( new Integer(3903), new ProjectDetails(3903, 338));
		pool.put( new Integer(3905), new ProjectDetails(3905, 338));
		pool.put( new Integer(4000), new ProjectDetails(4000, 250));
		pool.put( new Integer(4001), new ProjectDetails(4001, 289));
		pool.put( new Integer(4004), new ProjectDetails(4004, 250));
		pool.put( new Integer(4005), new ProjectDetails(4005, 289));
		pool.put( new Integer(4006), new ProjectDetails(4006, 270));
		pool.put( new Integer(4007), new ProjectDetails(4007, 275));
		pool.put( new Integer(4008), new ProjectDetails(4008, 250));
		pool.put( new Integer(4009), new ProjectDetails(4009, 275));
		pool.put( new Integer(4010), new ProjectDetails(4010, 295));
		pool.put( new Integer(4011), new ProjectDetails(4011, 295));
		pool.put( new Integer(4012), new ProjectDetails(4012, 211));
		pool.put( new Integer(4013), new ProjectDetails(4013, 250));
		pool.put( new Integer(4100), new ProjectDetails(4100, 176));
		pool.put( new Integer(4101), new ProjectDetails(4101, 217));
		pool.put( new Integer(4102), new ProjectDetails(4102, 215));
		pool.put( new Integer(4103), new ProjectDetails(4103, 164));
		pool.put( new Integer(4104), new ProjectDetails(4104, 213));
		pool.put( new Integer(4105), new ProjectDetails(4105, 176));
		pool.put( new Integer(4107), new ProjectDetails(4107, 215));
		pool.put( new Integer(4108), new ProjectDetails(4108, 164));
		pool.put( new Integer(4109), new ProjectDetails(4109, 213));
		pool.put( new Integer(4110), new ProjectDetails(4110, 168));
		pool.put( new Integer(4111), new ProjectDetails(4111, 168));
		pool.put( new Integer(4112), new ProjectDetails(4112, 303));
		pool.put( new Integer(4113), new ProjectDetails(4113, 188));
		pool.put( new Integer(4114), new ProjectDetails(4114, 107));
		pool.put( new Integer(4115), new ProjectDetails(4115, 176));
		pool.put( new Integer(4116), new ProjectDetails(4116, 217));
		pool.put( new Integer(4117), new ProjectDetails(4117, 215));
		pool.put( new Integer(4118), new ProjectDetails(4118, 164));
		pool.put( new Integer(4119), new ProjectDetails(4119, 213));
		pool.put( new Integer(4120), new ProjectDetails(4120, 168));
	
	};
	

}
